package sign;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String OkName = "zhanghaifeng";
        String OkPasswords = "1390892";


        String s1 = "abc";
        String s2 = "ABC";
        if(s1.equalsIgnoreCase(s2)){   //  equalsIgnoreCase   忽略大小写
            System.out.println("yes");
        }
        else{
            System.out.println("no");
        }


        System.out.println("输入用户名");
        String name = scanner.next();
        System.out.println("输入密码");
        String passwords = scanner.next();
        if(OkName.equals(name)&&OkPasswords.equals(passwords)){
            System.out.println("登录成功");
        }
        else{
            System.out.println("用户名或密码错误");
        }
    }
}
